const express = require("express");
const router = express.Router();

const { spotFundsBasicData } = require('../../data/mockData.js')
// spotFundsTableList
// 查询现货账户个人基本信息
router.get("/data/basic/spot/funds", (req, res) => {
    //   console.log(req.query, "req");
    // console.log('请求/data/basic/spot/funds');

    res.success({ data: spotFundsBasicData, message: "现货账户个人基本信息数据查询成功" });
});

const { recordData } = require('../transaction/index.js')

// 查询现货账户页面表格数据
router.get("/spot/funds/table/list", (req, res) => {
    //   console.log(req.query, "req");
    // console.log('请求/spot/funds/table/list');
    console.log(recordData);
    

    res.success({ data: recordData, message: "现货账户表格数据查询成功" });
});

module.exports = router;